package exception;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class TryResourceDemo {
    public static void main(String[] args) {
        try (Connection connection = DriverManager.getConnection("123")) {
            connection.commit();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
